package com.cmbdb.controller;

import com.cmbdb.core.common.AjaxJson;
import org.springframework.web.bind.annotation.*;

/**
 * Created by zml on 17-3-10.
 */
@RestController
@RequestMapping("api")
public class ApiTestController {

    @ResponseBody
    @RequestMapping(value = "/helloApiUser",method = RequestMethod.GET)
    public AjaxJson helloApiUser(@RequestParam String id) {
        AjaxJson ajaxJson = new AjaxJson();
        ajaxJson.setSuccess(true);
        ajaxJson.setMsg(id + "进入成功！");
        ajaxJson.setObj(id);
        System.out.println("hello! " + id);
        return ajaxJson;
    }
}
